package cn.doitedu.javase.tests;

public class ArrayCopyTest {
    public static void main(String[] args) {

        int[] src1 = {1,2,3};
        int[] src2 = {4,5,6};

        int[] whole = new int[src1.length + src2.length];

        System.arraycopy(src1,0,whole,0,src1.length);
        System.arraycopy(src2,0,whole,src1.length,src2.length);

        for (int i : whole) {
            System.out.print(i);
        }


    }
}
